import { pa } from 'element-plus/es/locale';
import request from '/@/utils/request';
enum Api {
    GetAccessToken = '/api/topSdk/getAccessToken',
    GetUserInfo = '/api/topSdk/getUserInfo',
    GetUser = '/api/topSdk/getUser',
	GetUserId = '/api/topSdk/getUserId',
}

export const getAccessToken = (params?: any) =>
	request({
		url: Api.GetAccessToken,
		method: 'post',
		data: params,
	});

export const getUserInfo = (params?: any) =>
	request({
		url: Api.GetUserInfo,
		method: 'post',
		data: params,
	});

export const getUser = (params?: any) =>
	request({
		url: Api.GetUser,
		method: 'post',
		data: params,
	});

export const getUserId = (params?: any) =>
	request({
		url: Api.GetUserId,
		method: 'post',
		data: params,
	});